<script>
	$(function(){
		pageNav.go(${pageNum},${userVOPage.totalPage});
	});
</script>
<script type="text/javascript">
	function login() {
		var password = $('#password').attr('value');
		
		$('#passwordMD5').attr('value',hex_md5(password));
		
		$('#loginForm').submit();
	}
</script>
<div class="Main">
<div class="left">
<div class="ban"><img src="${basePath}images/ban.jpg" width="590" height="190" /></div>
<!-- 位置start -->
<div class="wz"><span>您所在的位置：<a href="#">乐共享首页</a></span></div>
<!-- 乐友搜索 -->
<div class="ly_sear">
<form action="${basePath}home/userSearch.htm" method="post" name="searchForm" id="searchForm">
<div class="ly_searh1">
<h1>我要找</h1>
	<table width="460" border="0" cellspacing="0" cellpadding="0" class="ly_searh1_tab">
	  <tr>
	    <td width="46" align="right"><b>性别：</b></td>
	    <td width="21">
	    	<#if sex?exists && sex == '0'>
  				<input type="radio" name="sex" id="radio" value="0" checked="checked" />
      		<#else>
				<input type="radio" name="sex" id="radio" value="0" />
			</#if>
	      <label for="radio"></label></td>
	    <td width="23">女</td>
	    <td width="20">
	    	<#if sex?exists && sex == '1'>
  				<input type="radio" name="sex" id="radio2" value="1" checked="checked" />
      		<#else>
				<input type="radio" name="sex" id="radio2" value="1" />
			</#if>
	      <label for="radio2"></label></td>
	    <td width="32">男</td>
	    <td width="44"><b>等级：</b></td>
	    <td width="90"><select name="degree" id="select" style="width:90px;">
	    	<option value="">请选择会员等级</option>
	      	<#list userDegrees as userDegree>
	      		<#if degree?exists && degree == userDegree.name>
	  				<option value="${userDegree.name}" selected="selected">${userDegree.description?default('')}</option>
	      		<#else>
					<option value="${userDegree.name}">${userDegree.description?default('')}</option>
				</#if>
			</#list>
	    </select></td>
	    <td width="55"><input type="submit" value="" class="ly_searbut" /></td>
	  </tr>
	</table>
</div>
<div class="ly_list">
<ol>
<#list userVOPage.rows as userVO>
	<#if userVO_index%5 == 4> 
		<li class="ad1">
	<#else>
		<li>
	</#if>
		<a href="#"><img src="${basePath}${userVO.headImage?default('')}" width="108" height="108" /></a>
		<span></span>
		<a href="#" class="list_text">${userVO.nickname?default(userVO.cardId?default(''))}</a>
	</li>
</#list>
</ol>
<#if (userVOPage.total > 0)>
	<div class="page-nav" id="pageNav"></div>
<#else>
	<div class="page-nav">暂无记录</div>
</#if>
</div>
<input type="hidden" name="page" id="page" />
</form>
</div>
</div>
<div class="right">
<!-- 登录/注册 -->
<#if s_user?exists && s_userExpand?exists>
	<div class="Reg2">
		<ol>
		<li class="lk"><dl><dt><img src="${basePath}${s_userExpand.headImage?default('')}" width="47" height="47" /></dt><dd class="aa">${s_user.username?default('')}</dd><dd><img src="${basePath}images/djimg.jpg" width="36" height="15" /></dd>
		</dl></li>
		<li><a href="#">我的话题</a></li><li><a href="#">我的圈子</a></li><li><a href="#">我的乐友</a></li><li><a href="${basePath}home/logout.htm?redirectUrl=../../index">退出</a></li>
		</ol>
	</div>
<#else>
	<form action="${basePath}home/login.htm" method="post" name="loginForm" id="loginForm">
		<div class="Reg"><ul>
		<li><a href="#"><img src="${basePath}images/regbut1.jpg" width="182" height="54" /></a></li>
		<li><input name="username" type="text" class="te1" /></li>
		<li><input name="password" id ="password" type="password" class="te1"  />
		<input type="hidden" id="passwordMD5" name="passwordMD5" /></li>
		<li><!--<input name="" type="checkbox" value="" />下次自动登录<span><a href="#">忘记密码</a></span>--></li>
		<li class="Reg_but"><input name="" type="button" value="" onclick="login()"/></li>
		<li align="center">
			<#if errorMsg?exists>
				<font color="red">${errorMsg}</font>
			</#if></li>
		</ul></div>
		<input type="hidden" name="redirectUrl" id="redirectUrl" value="../../index" />
	</form>
</#if>
<!-- 热门话题排行榜 -->
<div class="hot_ht">
<h1><span>热门话题排行榜</span></h1>
<ul>
<li><dl>
<dt><img src="${basePath}images/i1.jpg" width="30" height="30" /></dt><dd><a href="#">大学生戏弄拾荒小孩</a></dd><dd>房间人数：88</dd>
</dl></li>
</ul>
</div>
</div></div>